package ooday02;

public class Dog extends Animal implements Swim{
    Dog(){}
    Dog(String name,String color,int age){
        super(name,color,age);
    }
    void lookHome(){
        System.out.println(color+"色"+age+"岁的小狗"+name+"正在看家...");
    }
    void eat(){
        System.out.println(color+"色"+age+"岁的小狗"+name+"正在啃骨头...");
    }
    public void swim(){
        System.out.println(color+"色"+age+"岁的小狗"+name+"正在游泳...");
    }
}
